import React, { Component } from 'react';
import {Button} from 'antd';
import 'antd/dist/antd.css'
import '../style.css'
import { Row, Col } from 'antd';

export default class AddHeard extends Component {
    constructor(props:any){
        super(props);
    }
    props = {
        chanceAction:(action:any,record:any) => {}
    };
    chanceAction = () =>{
          this.props.chanceAction("main",'');
      }
    render() {
        return (
            <>
            <br/>
                <Row>
                    <Col span={6} offset={1}>
                        <h3 style={{fontWeight:600}}>新建仓位</h3>
                    </Col>
                    <Col span={3} offset={14}>
                        <Button type="default"   onClick={this.chanceAction}> 取消</Button>&nbsp;&nbsp;
                        <Button type="primary" > 确认</Button>
                    </Col>
                </Row>
                <hr className="antd-hrStyle"/>
            </>
            
        )
    }
}
